package com.enation.app.shop.front.policyInsurance.service.impl;

import com.enation.app.shop.front.policyInsurance.entity.RbtDispersion;
import com.enation.app.shop.front.policyInsurance.service.DispersionMapper;
import com.enation.framework.database.IDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RbtDispersionService implements DispersionMapper{
    @Autowired
    private IDaoSupport iDaoSupport;

    @Override
    public List<RbtDispersion> getAllDispersion() {
        String sql = "SELECT * from rbt_dispersion s where 1=1";
        return iDaoSupport.queryForList(sql,RbtDispersion.class);
    }
}
